clear all;
clc;

load mnist0v1

trainsize = 1000;
n = size(data,1);

Ypred = lmm(data,label(1:trainsize),4,10,1);

calacc(Ypred,label(trainsize+1:n))